GObject *object;
+ GtkWidget *address;
GtkWidget *refcount_row;
GtkWidget *refcount;
GtkWidget *state_row;
widget = gtk_window_get_focus (GTK_WINDOW (sl->priv->object));
if (widget)
- show_object (sl, G_OBJECT (widget), "properties");
+ show_object (sl, G_OBJECT (widget), "properties");
}
static void
GtkInspectorMiscInfo *sl = data;
gchar *tmp;
+ tmp = g_strdup_printf ("%p", sl->priv->object);
+ gtk_label_set_text (GTK_LABEL (sl->priv->address), tmp);
+ g_free (tmp);
+
if (G_IS_OBJECT (sl->priv->object))
{
tmp = g_strdup_printf ("%d", sl->priv->object->ref_count);
gtk_label_set_text (GTK_LABEL (sl->priv->refcount), tmp);
g_free (tmp);
}
-
+
if (GTK_IS_WIDGET (sl->priv->object))
{
AtkObject *accessible;
GTK_TYPE_WIDGET, G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY));
gtk_widget_class_set_template_from_resource (widget_class, "/org/gtk/libgtk/inspector/misc-info.ui");
+ gtk_widget_class_bind_template_child_private (widget_class, GtkInspectorMiscInfo, address);
gtk_widget_class_bind_template_child_private (widget_class, GtkInspectorMiscInfo, refcount_row);
gtk_widget_class_bind_template_child_private (widget_class, GtkInspectorMiscInfo, refcount);
gtk_widget_class_bind_template_child_private (widget_class, GtkInspectorMiscInfo, state_row);
<object class="GtkListBox">
<property name="visible">True</property>
<property name="selection-mode">none</property>
+ <child>
+ <object class="GtkListBoxRow" id="address_row">
+ <property name="visible">True</property>
+ <property name="activatable">False</property>
+ <child>
+ <object class="GtkBox">
+ <property name="visible">True</property>
+ <property name="orientation">horizontal</property>
+ <property name="margin">10</property>
+ <property name="spacing">40</property>
+ <child>
+ <object class="GtkLabel" id="address_label">
+ <property name="visible">True</property>
+ <property name="label" translatable="yes">Address</property>
+ <property name="halign">start</property>
+ <property name="valign">baseline</property>
+ <property name="xalign">0.0</property>
+ </object>
+ <packing>
+ <property name="expand">True</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkLabel" id="address">
+ <property name="visible">True</property>
+ <property name="selectable">True</property>
+ <property name="halign">end</property>
+ <property name="valign">baseline</property>
+ </object>
+ </child>
+ </object>
+ </child>
+ </object>
+ </child>
<child>
<object class="GtkListBoxRow" id="refcount_row">
<property name="visible">True</property>
<child>
<object class="GtkLabel" id="default_widget">
<property name="visible">True</property>
+ <property name="selectable">True</property>
<property name="halign">end</property>
<property name="valign">baseline</property>
</object>
<child>
<object class="GtkLabel" id="focus_widget">
<property name="visible">True</property>
+ <property name="selectable">True</property>
<property name="halign">end</property>
<property name="valign">baseline</property>
<property name="ellipsize">end</property>
<object class="GtkSizeGroup">
<property name="mode">horizontal</property>
<widgets>
+ <widget name="address_label"/>
+ <widget name="refcount_label"/>
<widget name="state_label"/>
<widget namel="buildable_id_label"/>
<widget name="default_widget_label"/>